﻿
function editLabelToggle(prefixId) {
    var lbl = document.getElementById(prefixId + "_lblContent");
    var div = document.getElementById(prefixId + "_pnlEditVersion");
    var txt = document.getElementById(prefixId + "_txtContent");
    if (lbl == null || div == null) return;

    if (lbl.style.display == "" || lbl.style.display == "block") {
        lbl.style.display = "none";
        div.style.display = "block";
        if (txt != null)
            txt.focus();
    }
    else {
        lbl.style.display = "block";
        div.style.display = "none";
        if (txt != null)
            txt.value = lbl.innerHTML;
    }
}